package com.xuerhua.yxt.dao;

import java.util.List;

import com.xuerhua.yxt.model.StudentLeave;
import com.xuerhua.yxt.page.Page;
import com.xuerhua.yxt.view.StudentLeaveView;

public interface StudentLeaveMapper {

    int insertSelective(StudentLeave record);

    StudentLeave selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(StudentLeave record);

    /**
     * 查询待审批的请假
     * @param page
     * @return
     */
    List<StudentLeaveView> selectPendingList(Page<StudentLeaveView> page);
    
    /**
     * 查询已审审批的请假
     * @param page
     * @return
     */
    List<StudentLeaveView> selectAuditedListByPage(Page<StudentLeaveView> page);
    
    
}